package cn.edu.ujn.food.dao;

import cn.edu.ujn.food.entity.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
@Mapper
public interface DishDao {

    Dish queryById(Integer dishId);

    List<Dish> queryAllByLimit(Dish dish, @Param("pageable") Pageable pageable);

    long count(Dish dish);

    int insert(Dish dish);

    int insertBatch(@Param("entities") List<Dish> entities);

    int insertOrUpdateBatch(@Param("entities") List<Dish> entities);

    int update(Dish dish);

    int deleteById(Integer dishId);

    List<Dish> selectAll(Dish dish);

    Integer selectCount();

    List<Dish> findAll();
}

